package cn.tedu.csmall.server;

import cn.tedu.csmall.server.mapper.CategoryMapper;
import cn.tedu.csmall.server.service.ICategoryService;
import cn.tedu.csmall.server.service.impl.CategoryServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
@SpringBootTest
public class Category {
    @Autowired
    private CategoryMapper mapper;

    @Test
    public void testGetById(){

    }

    @Resource(name="categoryServiceImpl")
    private ICategoryService categoryService;

    @Autowired
    private ICategoryService categoryService1;


    @Autowired
    @Qualifier("categoryServiceImpl")
    private ICategoryService categoryService2;

    @Test
    public void test01(){

        System.out.println(categoryService);
        System.out.println(categoryService1);
        System.out.println(categoryService2);
    }
}
